/**
 * ReportGear(2011)
 */
package com.reportgear.designer.gui.component.button;

import java.awt.Dimension;

import javax.swing.JButton;

/**
 * 通用文本按钮
 * 
 * @version 1.0 2011-4-27
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since Report 1.0
 */
public class CustomTextButton extends JButton {
	/**
	 * UID
	 */
	private static final long serialVersionUID = -7365029921196006309L;

	public CustomTextButton() {
		this("");
	}

	public CustomTextButton(String text) {
		setText(text);
		setPreferredSize(new Dimension(text.length() * 14, 18));
	}
}
